]> dgit.raspbian.org Git - gnome-shell.git/commit
closeDialog: Actually set key focus to button when grabbing key focus
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 27 Oct 2019 17:58:16 +0000 (18:58 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 29 Jan 2024 23:14:24 +0000 (23:14 +0000)
commitde834fe3073c3eafb3fe7feff42d6107f91f1e79
tree842b89b7008d67bacef96cf42965b9a2417bdb48
parentd373e10a4490a1767da2be710fea7bec6718773c
closeDialog: Actually set key focus to button when grabbing key focus

When setting the key focus to `this._dialog`, the default button is not
automatically focused and no button has key focus.

Use the `initialKeyFocus` property of the dialog instead, and set focus
to the default button if the dialog is not already focused.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/786>
js/ui/closeDialog.js